package CreationalPatterns.Factory;

public class Factory {

  public Shape getShape(String shape){
    if (shape.equalsIgnoreCase("cirle")){
      return new Circle();
    }
    if (shape.equalsIgnoreCase("rectangle")){
      return new Rectangle();
    }
    return null;
  }
}
